package com.lebang.mapper;

import com.lebang.domain.MemberPointInfo;
import com.lebang.example.MemberPointInfoExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MemberPointInfoMapper {
    long countByExample(MemberPointInfoExample example);

    int deleteByExample(MemberPointInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MemberPointInfo record);

    int insertSelective(MemberPointInfo record);

    List<MemberPointInfo> selectByExample(MemberPointInfoExample example);

    MemberPointInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MemberPointInfo record, @Param("example") MemberPointInfoExample example);

    int updateByExample(@Param("record") MemberPointInfo record, @Param("example") MemberPointInfoExample example);

    int updateByPrimaryKeySelective(MemberPointInfo record);

    int updateByPrimaryKey(MemberPointInfo record);

    MemberPointInfo selectByMemberId(String memberId);

    int addPoint(@Param("id") Integer id, @Param("count") Integer count);

    void subtractPoint(@Param("id") Integer id, @Param("count") Integer count);

    void logoutPoint(@Param("memberId") String memberId);
}